This is a longshot, but would be great to have. Below I have at MWE1 the
verbatim codefragment textbox I am using. I found in the forum MWE2 which
is a textbox with an automatic reference number. Is there a way to get the
same for MWE1 with automatic reference numbering like 1.1, 1.2 etc
Jeroen schrieb am 08.09.2023 um 13:09:
I am using the following to print some verbatim text in a frame. At
the right side, it keeps running out of the frame, is there a way to
prevent this with the MWE? This verbatim frame always is textwidth, is
there a way for a single frame just
I am using the following to print some verbatim text in a frame. At the
right side, it keeps running out of the frame, is there a way to prevent
this with the MWE? This verbatim frame always is textwidth, is there a way
for a single frame just for if the situation asks for it to have it only
have
Dear Hans,
Thank you for your detailed answer. I'll wait then the next upload.
Kind regards
Marcus Vinicius
On Thu, Sep 7, 2023 at 2:36 PM Hans Hagen via ntg-context
wrote:
>
> On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote:
> > Dear List,
> >
> > The MWE below gives a pdf with two #'s
On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote:
Dear List,
The MWE below gives a pdf with two #'s instead of only one. Why is that?
\starttext
\startluacode
context.type("#")
\stopluacode
\stoptext
because by default tex loves to duplicate hashes when it serializes
token lists
Dear List,
The MWE below gives a pdf with two #'s instead of only one. Why is that?
\starttext
\startluacode
context.type("#")
\stopluacode
\stoptext
--
Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
corpo nem seus membros, por ser descanso da alma, primavera do
of the
\everyinitializeverbatim register because it is used for
inline and display verbatim. A better place to add the option is
\buff_verbatim_initialize_typing_two for \starttyping
and \buff_verbatim_initialize_type_two for \type.
ok
Alex Leray schrieb am 17.08.2023 um 17:59:
Hi,
I think I need to use verbatim because I'm typesetting source code and
I need it to be as verbatim as possible.
For the moment, I'm manually inserting zero-width spaces... seems to
do the trick, although it's becoming unreadable :P
Which
Hi,
I think I need to use verbatim because I'm typesetting source code and I
need it to be as verbatim as possible.
For the moment, I'm manually inserting zero-width spaces... seems to do
the trick, although it's becoming unreadable :P
Thanks,
Alex
Le 17/08/23 à 17:22, Wolfgang Schuster
Alex Leray schrieb am 17.08.2023 um 14:41:
Hi,
I'd like to break lines in verbatim on certain characters like "/".
I can do it for normal texte, but not inside typing environment.
Do you need the verbatim environment or is the lines-environment sufficient.
\setuppa
, Alex Leray wrote:
Hi,
I'd like to break lines in verbatim on certain characters like "/".
I can do it for normal texte, but not inside typing environment.
Is there a way to achieve this?
For now do this:
\appendtoks
\usesetupsparameter\typingparameter
\to \everyinitiali
On 8/17/2023 2:41 PM, Alex Leray wrote:
Hi,
I'd like to break lines in verbatim on certain characters like "/".
I can do it for normal texte, but not inside typing environment.
Is there a way to achieve this?
For now do this:
\appendtoks
\usesetupsparameter\typin
Hi,
I'd like to break lines in verbatim on certain characters like "/".
I can do it for normal texte, but not inside typing environment.
Is there a way to achieve this?
Below is my test code.
Thanks,
Alex
* * *
\setuppapersize[A7]
\setbreakpoints[compound]
\starttext
1. This is
On Fri, 19 May 2023, Jeroen via ntg-context wrote:
> Many thanks. Is there a proper way to add some space (a couple of pt or em)
> to the left and the right of the text itself so the frame does not get so
> close to the text?
\framed[loffset=0.2ex, roffset=0.2ex]{...}
Also see:
chrieb am 19.05.2023 um 14:22:
> > In order to get some inline framed verbatim text, I have in the past
> > always used the following:
> >
> > \starttext
> >
> > This is an
> > \inframed
> > [frame=on,
> > corner=00,
> > radius=2mm,of
Jeroen via ntg-context schrieb am 19.05.2023 um 14:22:
In order to get some inline framed verbatim text, I have in the past
always used the following:
\starttext
This is an
\inframed
[frame=on,
corner=00,
radius=2mm,offset=-1.5pt]
{\ttx \bf example}
\stoptext
Since this has come-up
In order to get some inline framed verbatim text, I have in the past always
used the following:
\starttext
This is an
\inframed
[frame=on,
corner=00,
radius=2mm,offset=-1.5pt]
{\ttx \bf example}
\stoptext
Since this has come-up more and more often, I created the following:
\define[1
On 2/4/23 07:49, Hugo Landau via ntg-context wrote:
> On this page of the wiki there is an example for wrapping long words,
> like long hexadecimal strings:
>
> https://wiki.contextgarden.net/Wrapping
>
> This example is buggy because it deletes one character at the point that
> it is wrapped.
On 2/5/2023 4:52 PM, Pablo Rodriguez via ntg-context wrote:
On 2/5/23 13:13, Hans Hagen via ntg-context wrote:
On 2/5/2023 12:32 PM, Pablo Rodriguez via ntg-context wrote:
[...]
Are we missing something or is this a bug?
what do you expect as result? (maybe try \righthyphenmin=1)
Line
On 2/5/23 13:13, Hans Hagen via ntg-context wrote:
> On 2/5/2023 12:32 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Are we missing something or is this a bug?
> what do you expect as result? (maybe try \righthyphenmin=1)
Line breaks are removing characters.
In the sample below, output
On 2/5/2023 12:32 PM, Pablo Rodriguez via ntg-context wrote:
On 2/4/23 10:37, Pablo Rodriguez via ntg-context wrote:
On 2/4/23 07:49, Hugo Landau via ntg-context wrote:
On this page of the wiki there is an example for wrapping long words,
like long hexadecimal strings:
On 05/02/2023 12:32, Pablo Rodriguez via ntg-context wrote:
Are we missing something or is this a bug?
If you add a \tt at the beginning, the lines have different length.
not sure why, but there is a reason to it...
\startTEXpage[offset=3em]
\tt
\setupalign[tolerant,stretch]
\dorecurse
On 2/4/23 10:37, Pablo Rodriguez via ntg-context wrote:
> On 2/4/23 07:49, Hugo Landau via ntg-context wrote:
>> On this page of the wiki there is an example for wrapping long words,
>> like long hexadecimal strings:
>>
>> https://wiki.contextgarden.net/Wrapping
>>
>> This example is buggy because
On 2/4/23 07:49, Hugo Landau via ntg-context wrote:
> On this page of the wiki there is an example for wrapping long words,
> like long hexadecimal strings:
>
> https://wiki.contextgarden.net/Wrapping
>
> This example is buggy because it deletes one character at the point that
> it is wrapped.
>
On this page of the wiki there is an example for wrapping long words,
like long hexadecimal strings:
https://wiki.contextgarden.net/Wrapping
This example is buggy because it deletes one character at the point that
it is wrapped.
In the example given, running context turns '257a410' into
Am Sat, 28 Jan 2023 03:01:24 +0100 schrieb Kalouguine Andre via
ntg-context:
> I'm trying to make a verbatim block of text with copiable leading spaces
> so that students can just copy my Python code snippets into their IDE.
This basically doesn't work (quite unrelated to the tex code).
T
On 1/29/23 17:58, Kalouguine Andre via ntg-context wrote:
> On 28.01.2023 22:54, Hans Hagen via ntg-context wrote:
>> […]
>> so: this is all very viewer dependent! (The suggested comment method
>> is more reliable.)
>
> Unfortunately as I just found out, comments are also viewer dependent...
>
Acrobat). Right you are, it works with
> your method, thanks!
> I think the students have Evince so perhaps it's the best solution in the
> absence
there are some provisions for spaces in text but for verbatim it is a
bit more tricky
\setuptyping[space=on]
you now see visual spaces show up tha
solution in
the absence
there are some provisions for spaces in text but for verbatim it is a
bit more tricky
\setuptyping[space=on]
you now see visual spaces show up that can be copied
now, say that we add real spaces, which you can do after and this (in
cont-new.mkxl):
\unprotect
ence
of copiable spaces in verbatim mode.
Thanks again!
Best regards,
Andre___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mail
On 1/28/23 14:31, Kalouguine Andre via ntg-context wrote:
> Hi Pablo,
Hi André,
> [...]
> That's actually something I had never thought of, using PDF comments,
> thanks!.
When I faced a similar task, I thought it could be the way of solving
the issue (how to copy and paste ConTeXt code and
Hi Pablo,
> \showframe
> \setupinteraction[state=start]
> \starttext
> \startbuffer[abc]
> def foo(x):
> if x == 0:
> bar()
> else:
> baz(x)
> foo(x - 1)
> \stopbuffer
> \comment[location=leftmargin,
> space=yes,
> buffer=abc,
> title={Python code}]
> {}\typebuffer[abc]
> \stoptext
>
> This
On 1/28/23 03:01, Kalouguine Andre via ntg-context wrote:
> Good day to everyone,
>
> I'm trying to make a verbatim block of text with copiable leading spaces
> so that students can just copy my Python code snippets into their IDE.
Hi André,
I wonder whether I’m gettin
Good day to everyone,
I'm trying to make a verbatim block of text with copiable leading spaces
so that students can just copy my Python code snippets into their IDE. I
believe the question has been asked before (though I confess I can't
find the right search terms to find the answer again). I
Hans Hagen via ntg-context schrieb am 31.07.2021 um 00:18:
On 7/30/2021 9:12 PM, Jeroen via ntg-context wrote:
I am using the following preamble to put a frame around
verbatim text. How can I have all the text start some 5pt from the
frame and how can I get rounded corners, corner=0 does
On 7/30/2021 9:12 PM, Jeroen via ntg-context wrote:
I am using the following preamble to put a frame around verbatim text.
How can I have all the text start some 5pt from the frame and how can I
get rounded corners, corner=0 does not seem to work
\setupcolors[state=start]
\setupcolor[xwi
I am using the following preamble to put a frame around verbatim text. How
can I have all the text start some 5pt from the frame and how can I get
rounded corners, corner=0 does not seem to work
\setupcolors[state=start]
\setupcolor[xwi]
\definetextbackground
[Code]
[frame
On 4/26/2021 12:23 PM, Floris van Manen wrote:
\starttext
\starttyping[escape=@]
1 137 26 25 > 1 69 32
2 @btex@bgroup@red@bf 137 @egroup@etex 26 25 > 1 69 32
3 @btex@bgroup@red@bf 137 @egroup@etex 26 25 > 1 69 32
4 137 26 25 > 1 69 32
5
Aparently all spaces after @etex get reduced to one only.
I'd expect that to happen inside @btex and @etex
\starttext
\starttyping[escape=@]
1 137 26 25 >1 69 32
2 @btex@bgroup@red@bf 137 @egroup@etex 26 25 >1 69 32
3 @btex@bgroup@red@bf 137 @egroup@etex 26 25
On 26/04/2021 10:59, Hans Hagen wrote:
\starttext
\starttyping[escape=/]
one two three
four /btex/bgroup/red five /egroup/etex six
seven eight nine
\stoptyping
\stoptext
That works indeed! Thanks.
Are there restriction on what context commands can be given inside the
bgroup? e.g. I tried
On 4/26/2021 10:25 AM, Floris van Manen wrote:
What is the easiest way, if possible, to highlight some sections of
verbatim text?
given:
\starttyping
one two three
four five six
seven eight nine
\stoptyping
i'd like to color the word 'five' in red, or italic.
\starttext
\starttyping[escape
What is the easiest way, if possible, to highlight some sections of
verbatim text?
given:
\starttyping
one two three
four five six
seven eight nine
\stoptyping
i'd like to color the word 'five' in red, or italic.
.Floris
arttext
> > \startLUA
> > whatever
> > \stopLUA
> > \stoptext
> >
> > In contrast to ConTeXt MKIV, the leading four spaces in front of
> > "whatever" are not removed when processing the verbatim text:
> >
> > MKIV output:
>
processing the verbatim text:
MKIV output:
whatever
LMTX output:
whatever
Is there a way to get the old MKIV behavior back?
\setuptyping[LUA][strip=yes]
Wolfgang
___
If your question is of interest to othe
Dear List,
I am using ConTeXt LMTX 2018.05.19 21:46. Consider the following MWE:
\starttext
\startLUA
whatever
\stopLUA
\stoptext
In contrast to ConTeXt MKIV, the leading four spaces in front of "whatever"
are not removed when processing the verbatim text:
MKIV output:
what
On Tue, Sep 1, 2020 at 10:50 AM Christoph Reller
wrote:
> I am using ConTeXt LMTX 2020.08.28 13:58 with the following M(N)WE:
>
> \definetype[typeLUA][option=LUA]
> \setbreakpoints[compound]
> \starttext
> \typeLUA{function(argument)}
> \stoptext
>
> Sadly, it does not compile.
>
I found that
Dear List,
I am using ConTeXt LMTX 2020.08.28 13:58 with the following M(N)WE:
\definetype[typeLUA][option=LUA]
\setbreakpoints[compound]
\starttext
\typeLUA{function(argument)}
\stoptext
Sadly, it does not compile. The problem seems to be the simultaneous use of
compound breakpoints and
On 08/09/2017 08:48 AM, Schmitz Thomas A. wrote:
>
>> On 8. Aug 2017, at 23:26, Pablo Rodriguez wrote:
>>
>> Thomas,
>>
>> \xmlprettyprint seems an easier approach.
>
> Thank you, I did’n know about \xmlprettyprint. But I want to define
> my own prettyprinters, so it’s not
On 08/09/2017 11:03 AM, Hans Hagen wrote:
> \startbuffer[test]
>
>
> \starttext
> \ConTeXt\ is awesome!
> \stoptext
>
>
>
>
>
> ...
>
>
> ...
>
>
>
>
> \stopbuffer
>
> \startxmlsetups xml:testsetups
>
Thank you Hans ! This code is ... awesome !
JP
Le 09/08/2017 à 11:03, Hans Hagen a écrit :
\startbuffer[test]
\starttext
\ConTeXt\ is awesome!
\stoptext
...
...
\stopbuffer
\startxmlsetups xml:testsetups
to show verbatim xml, and I’m writing in xml. This
solution: http://wiki.contextgarden.net/Verbatim_XML mostly works
(for Lua and TeX code), except for one little detail: for verbatim
xml, it also prints the tag. Example:
Thomas,
\xmlprettyprint seems an easier approach.
And I don’t know whether
> On 8. Aug 2017, at 23:26, Pablo Rodriguez wrote:
>
> Thomas,
>
> \xmlprettyprint seems an easier approach.
Thank you, I did’n know about \xmlprettyprint. But I want to define my own
prettyprinters, so it’s not suitable for my purpose. And it doesn’t solve the
issue I was
On 08/08/2017 11:26 PM, Pablo Rodriguez wrote:
> On 08/08/2017 10:46 PM, Schmitz Thomas A. wrote:
>> Hi all,
>>
>> excellent excuse to pester the list with a program: it’s for my
>> presentation at the ConTeXt meeting (have YOU registered yet?)…
>> So: I want to s
On 08/08/2017 10:46 PM, Schmitz Thomas A. wrote:
> Hi all,
>
> excellent excuse to pester the list with a program: it’s for my
> presentation at the ConTeXt meeting (have YOU registered yet?)…
> So: I want to show verbatim xml, and I’m writing in xml. This
&
Hi all,
excellent excuse to pester the list with a program: it’s for my presentation at
the ConTeXt meeting (have YOU registered yet?)… So: I want to show verbatim
xml, and I’m writing in xml. This solution:
http://wiki.contextgarden.net/Verbatim_XML mostly works (for Lua and TeX code
The inline string quoted below produces a correct
result but also generates an error message:
\type{8 1/2 x 11}
Is there a better way to handle this situation?
--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Updated PDF e-book:
On 5/12/2015 9:11 PM, John Culleton wrote:
The inline string quoted below produces a correct
result but also generates an error message:
\type{8 1/2 x 11}
Is there a better way to handle this situation?
what error
-
Am 13.03.2015 um 21:32 schrieb Emmanuel Asante emmanuela.asa...@gmail.com:
Hello All,
I am trying to centre a multi-line verbatim text horizontally on the page but
I cannot figure out how to do that. With the code below how can I centre the
whole block horizontally on the page
Thank you Wolfgang.
On Saturday, March 14, 2015, Wolfgang Schuster schuster.wolfg...@gmail.com
wrote:
Am 13.03.2015 um 21:32 schrieb Emmanuel Asante
emmanuela.asa...@gmail.com javascript:;:
Hello All,
I am trying to centre a multi-line verbatim text horizontally on the
page but I
Hello All,
I am trying to centre a multi-line verbatim text horizontally on the page
but I cannot figure out how to do that. With the code below how can I
centre the whole block horizontally on the page?
\setuptyping[TEX]
\startTEX
RSpec.describe Post, :type = :model do
end
\stopTEX
Am 12.02.2015 15:44, schrieb Hans Hagen:
so then you have to wikify it (or add it to the t-vim module docu)
You are right ofcourse :-)
Done: http://wiki.contextgarden.net/Verbatim_XML
___
If your question is of
On Thu, 12 Feb 2015, Hans Hagen wrote:
On 2/11/2015 12:15 PM, Andreas Schneider wrote:
Am 10.02.2015 22:45, schrieb Hans Hagen:
\startluacode
function xml.functions.processJSON(t)
buffers.assign(foo,\\startJSON\n .. tostring(xml.text(t))
.. \n\\stopJSON)
context.getbuffer
On 2/11/2015 12:15 PM, Andreas Schneider wrote:
Am 10.02.2015 22:45, schrieb Hans Hagen:
\startluacode
function xml.functions.processJSON(t)
buffers.assign(foo,\\startJSON\n .. tostring(xml.text(t))
.. \n\\stopJSON)
context.getbuffer { foo }
end
\stopluacode
Am 10.02.2015 22:45, schrieb Hans Hagen:
\startluacode
function xml.functions.processJSON(t)
buffers.assign(foo,\\startJSON\n .. tostring(xml.text(t))
.. \n\\stopJSON)
context.getbuffer { foo }
end
\stopluacode
\startxmlsetups xml:json
\pushcatcodetable
Hello,
as a few other topics on this Mailing List already discussed, it's not
(easily?) possible to use \starttyping\stoptyping within XML setups. If
it was simple verbatim, there would be a few workarounds.
However, I want to provide formatted verbatim (i.e. \startJSON
\stopJSON, after
On 2/10/2015 5:59 PM, Andreas Schneider wrote:
Hello,
as a few other topics on this Mailing List already discussed, it's not
(easily?) possible to use \starttyping\stoptyping within XML setups. If
it was simple verbatim, there would be a few workarounds.
However, I want to provide formatted
Dear list,
how do I place a verbatim environment in the text such that the
following paragraph is not indented? I expect the environment to
behave the same as the formula-environment. How can I achieve this?
--- minimal example ---
\starttext
\setupindenting[1.3em]
\setupindenting[yes
Am 07.05.2014 um 12:46 schrieb Thomas Möbius kont...@thomasmoebius.de:
Dear list,
how do I place a verbatim environment in the text such that the
following paragraph is not indented? I expect the environment to
behave the same as the formula-environment. How can I achieve this?
Add
On 9/17/2013 6:33 PM, Wolfgang Schuster wrote:
Hi,
the Consolas font produces proportional spaces even with “features=none”.
\starttypescript [mono] [consolas]
\setups[font:fallback:mono]
\definefontsynonym [Mono] [file:consolas]
[features=none]
Am 18.09.2013 um 09:50 schrieb Hans Hagen pra...@wxs.nl:
On 9/17/2013 6:33 PM, Wolfgang Schuster wrote:
Hi,
the Consolas font produces proportional spaces even with “features=none”.
\starttypescript [mono] [consolas]
\setups[font:fallback:mono]
\definefontsynonym [Mono]
On 9/18/2013 4:11 PM, Wolfgang Schuster wrote:
Am 18.09.2013 um 09:50 schrieb Hans Hagen pra...@wxs.nl:
On 9/17/2013 6:33 PM, Wolfgang Schuster wrote:
Hi,
the Consolas font produces proportional spaces even with “features=none”.
\starttypescript [mono] [consolas]
Hi,
the Consolas font produces proportional spaces even with “features=none”.
\starttypescript [mono] [consolas]
\setups[font:fallback:mono]
\definefontsynonym [Mono] [file:consolas]
[features=none]
\definefontsynonym [MonoBold] [file:consolasbold]
On Tue, 30 Jul 2013 23:03:32 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr:
On Tue, Jul 30 2013, john Culleton wrote:
Here is my code so far. I want to show a file in verbatim form. It
compiles but here
the content to the given width.
You can get the same effect with the \scale command, another way is to
change the font size for the verbatim block with
\typefile[bodyfont=small]{filename}
or \typefile[bodyfont=8pt]{filename}.
Wolfgang
Here is my code so far. I want to show a file in verbatim form. It
compiles but here is no frame around the text and there is no caption.
\startbuffer[ex1]
\typefile[]{example1.tex}
\stopbuffer
\placefigure[here][fig:ex1]
{Example 1}
{\externalfigure[ex1.buffer][width
On Tue, Jul 30 2013, john Culleton wrote:
Here is my code so far. I want to show a file in verbatim form. It
compiles but here is no frame around the text and there is no caption.
Hi,
this works here:
--8---cut here---start-8---
\starttext
\startbuffer[ex1
Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr:
On Tue, Jul 30 2013, john Culleton wrote:
Here is my code so far. I want to show a file in verbatim form. It
compiles but here is no frame around the text and there is no caption.
Hi,
this works here:
--8
On Tue, Jul 30 2013, Wolfgang Schuster wrote:
Am 30.07.2013 um 21:30 schrieb Peter Münster pmli...@free.fr:
\startbuffer[ex1]
\typefile[]{test.tex}
\stopbuffer
Why do you use a buffer?
Copy + paste ... ;) (brain was somewhere else... ;)
--
Peter
Am 26.11.2012 um 21:42 schrieb Erik Margraf erik.marg...@gmail.com:
Dear List,
is there a Context function/macro which enables me to set
a box with verbatim file input. I.e. something
similar to :
\setbox\scratchbox\hbox{\verbatimfileinput{FileName}}
You have to use a \vbox because
Am 26.11.2012 um 23:06 schrieb Erik Margraf erik.marg...@gmail.com:
I thought a box would be the best to use it in connection with the
FunnyFrame of the Metafun manual page 137. In particular
I wanted to set the the Frametitle with the contents of a file.
(The actual contents of the file
On 27-9-2012 22:49, Alan Braslau wrote:
Hello,
Can someone indicate how to typeset
$L_{α+β}$
as verbatim text?
(\arg{} doesn't help here...)
Furthermore, I suppose that typesetting Greek characters verbatim
depends also upon which \tt font is being used.
\setupbodyfont[dejavu]
\starttext
On Fri, 28 Sep 2012 10:43:48 +0200
Hans Hagen pra...@wxs.nl wrote:
On 27-9-2012 22:49, Alan Braslau wrote:
Hello,
Can someone indicate how to typeset
$L_{α+β}$
as verbatim text?
(\arg{} doesn't help here...)
Furthermore, I suppose that typesetting Greek characters verbatim
Hello,
Can someone indicate how to typeset
$L_{α+β}$
as verbatim text?
(\arg{} doesn't help here...)
Furthermore, I suppose that typesetting Greek characters verbatim
depends also upon which \tt font is being used.
Alan
Can someone indicate how to typeset
$L_{α+β}$
as verbatim text?
(\arg{} doesn't help here...)
Untested:
\type{...} should work. (Definitely did work a couple of months ago).
Furthermore, I suppose that typesetting Greek characters verbatim
depends also upon which \tt font is being used.
CM
I found something that might be an error in the current xml-processing.
In the following minimal example een Undefined control sequence error occurs
for the \xmldisplayverbatim and \xmlinlineverbatims. The \xmlverbatim doesn't.
\startxmldisplayverbatim ...\doinitializeverbatim
On 21-10-2011 22:18, Mojca Miklavec wrote:
Hello,
Is there any simple way to typeset the following example properly in ConTeXt?
I have an example of text that has to obey lines and spaces, but I
would like to apply some color to make it more readable. The
attachment contains an example of HTML
Hello,
Is there any simple way to typeset the following example properly in ConTeXt?
I have an example of text that has to obey lines and spaces, but I
would like to apply some color to make it more readable. The
attachment contains an example of HTML which displays fine in my
browser, and it
On 15-10-2011 05:29, Aditya Mahajan wrote:
Hi,
In the vim module, I use vim to generate TeX code that looks roughly as
~~~
\SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void}
main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{
System.out.println\SYN[javaParen]{(}\SYN[Constant]{Hello
On Sat, 15 Oct 2011, Hans Hagen wrote:
On 15-10-2011 05:29, Aditya Mahajan wrote:
Hi,
In the vim module, I use vim to generate TeX code that looks roughly as
~~~
\SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void}
main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{
Hi,
In the vim module, I use vim to generate TeX code that looks roughly as
~~~
\SYN[Type]{public} \SYN[Type]{static} \SYN[Type]{void}
main\SYN[javaParen]{(}String args\SYN[javaParen]{)} \{
System.out.println\SYN[javaParen]{(}\SYN[Constant]{Hello
World}\SYN[javaParen]{)} ;
\}
~~~
Hello ConTEXist.
I know that this probably is no reason, but can be in an environment
\starttyping ... \stoptyping turn on, which will each blank line in the
statement reflect? I want put in the presentation in this environment, a
direct numbers of blank lines. The larger number of empty
-- Forwarded message --
From: Wolfgang Schuster schuster.wolfg...@googlemail.com
To: mailing list for ConTeXt users ntg-context@ntg.nl
Date: Wed, 21 Sep 2011 13:09:42 +0200
Subject: Re: [NTG-context] Verbatim in framed text
Am 20.09.2011 um 17:50 schrieb Felix Ingram:
Some
Am 22.09.2011 um 12:54 schrieb Felix Ingram:
-- Forwarded message --
From: Wolfgang Schuster schuster.wolfg...@googlemail.com
To: mailing list for ConTeXt users ntg-context@ntg.nl
Date: Wed, 21 Sep 2011 13:09:42 +0200
Subject: Re: [NTG-context] Verbatim in framed text
Am
Am 20.09.2011 um 17:50 schrieb Felix Ingram:
Some of my verbatim lines are overflowing the framed text box I'm
putting them in. I see that I could define a pretty printer to handle
this but I came up with the following:
\starttext
\startframedtext[middle][width=.8\textwidth
Some of my verbatim lines are overflowing the framed text box I'm
putting them in. I see that I could define a pretty printer to handle
this but I came up with the following:
\starttext
\startframedtext[middle][width=.8\textwidth]
\startframedtext[left][frame=off, width=.6\textwidth
Hi,
I am having problems typing when typesetting code within a
\definetyping environment.
I hope someone might be able to give me a hint. My code looks as
follows:
\definetyping
[Haskell]
[ option=commands,
before={\startframedtext[width=\makeupwidth,
On Wed, 7 Sep 2011, Thomas Friedrich wrote:
Hi,
I am having problems typing when typesetting code within a
\definetyping environment.
I hope someone might be able to give me a hint. My code looks as
follows:
\definetyping
[Haskell]
[ option=commands,
Am 08.09.2011 um 09:55 schrieb Aditya Mahajan:
On Wed, 7 Sep 2011, Thomas Friedrich wrote:
Hi,
I am having problems typing when typesetting code within a
\definetyping environment.
I hope someone might be able to give me a hint. My code looks as
follows:
\definetyping
Am Donnerstag, den 08.09.2011, 09:59 +0200 schrieb Wolfgang Schuster:
Am 08.09.2011 um 09:55 schrieb Aditya Mahajan:
On Wed, 7 Sep 2011, Thomas Friedrich wrote:
Hi,
I am having problems typing when typesetting code within a
\definetyping environment.
I hope someone might be
On Thu, Sep 8, 2011 at 10:39 AM, Thomas Friedrich i...@suud.de wrote:
Question: Is there a way to replace the and strings in
the typesetting environment by something else? Or another work around?
maybe
\startHaskell
foo = bar =/BTEX/ETEX print
foo = bar =/BTEX$$/ETEX print
\stopHaskell
--
1 - 100 of 306 matches
Mail list logo